#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
 * Copyright © 2014, Finium Sdn Bhd, All Rights Reserved
 * 
 * EmailService.java
 * Modification History
 * *************************************************************
 * Date				Author						Comment
 * May 28, 2012		Venkaiah Chowdary Koneru	Created
 * *************************************************************
 */
package ${package}.commons.service;

import java.util.List;

import org.apache.commons.mail.EmailException;

/**
 * Service to send Emails
 * 
 * @author Venkaiah Chowdary Koneru
 * 
 */
public interface EmailService
{
    /**
     * 
     * @param content
     *            message content
     * @param subject
     *            subject of the email
     * @param toUserEmail
     *            recipient email
     * @param fromUserEmail
     *            from email
     * @throws EmailException
     *             in case of errors
     */
    void sendEmail(String content, String subject, String toUserEmail,
            String fromUserEmail) throws EmailException;

    /**
     * 
     * @param content
     *            message content
     * @param subject
     *            subject of the email
     * @param toUserEmails
     *            list of recipient email's
     * @param fromUserEmail
     *            from email
     * @throws EmailException
     *             in case of errors
     */
    void sendEmail(String content, String subject, List<String> toUserEmails,
            String fromUserEmail) throws EmailException;
}
